package com.ytrsoft.base;

import com.formdev.flatlaf.ui.FlatBorder;

import javax.swing.*;
import javax.swing.border.CompoundBorder;
import javax.swing.border.EmptyBorder;
import java.awt.*;

public class FlatArcBorder extends CompoundBorder {

    private static class ArcBorder extends FlatBorder {
        @Override
        protected int getArc(Component c) {
            return UIManager.getInt("Component.arc");
        }
    }

    public FlatArcBorder() {
        super(new ArcBorder(), new EmptyBorder(0, 0, 0, 0));
    }

}
